package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 每日记录之宠物的日常清洁
 * </p>
 *
 * @author TP
 * @since 2022-03-19 15:23:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("daily_info")
@ApiModel(value = "DailyInfo实体对象", description = "每日记录")
public class DailyInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("daily_info表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("外键,对应user的主键id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("对应宠物主键id")
    @TableField("pet_id")
    private Integer petId;

    @ApiModelProperty("宠物名字")
    @TableField("pet_nickname")
    private String petNickname;

    @ApiModelProperty("宠物照片")
    @TableField("pet_photo")
    private String petPhoto;

    @ApiModelProperty("每日记录的类型")
    @TableField("`type`")
    private String type;

    @ApiModelProperty("食物名\\清洁类型\\花费名字")
    @TableField("name")
    private String name;

    @ApiModelProperty("其它描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("花费的价格")
    @TableField("price")
    private String price;

    @ApiModelProperty("吃\\清洁\\花费的时间")
    @TableField("time")
    private LocalDate time;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Boolean delete;


}
